Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug fix for hyprctl --batch doesn't work with exec rules #8952

Merged
merged 3 commits into from
Jan 6, 2025

Conversation

Jakenv
Copy link
Contributor

@Jakenv Jakenv commented Jan 4, 2025

Describe your PR, what does it fix/add?

Fixes #1820 by ignoring ';' inside brackets [ ]

Is there anything you want to mention? (unchecked code, possible bugs, found problems, breaking compatibility, etc.)

For some reason the only app that was problematic when testing using commands like this ->
hyprctl --batch 'dispatch exec [noanim;float;workspace 7 silent] appname; dispatch exec [noanim;float;workspace 6 silent] appname; dispatch exec appname;'
was Wezterm, it would spawn on whatever workspace, other than that everything else worked without issues

Is it ready for merging, or does it need work?

Yeah, I was testing it with different apps and different combinations of commands and as mentioned above only Wezterm was problematic

Fixing command parsing to ignore ';' inside []
src/debug/HyprCtl.cpp Outdated Show resolved Hide resolved
@Jakenv Jakenv requested a review from vaxerski January 5, 2025 15:22
@vaxerski vaxerski merged commit 1bf4937 into hyprwm:main Jan 6, 2025
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

hyprctl --batch doesn't work with exec rules
2 participants